<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '普通插槽',
    type: 'slot',
    prop: 'slot1',
    value: { value: '普通插槽' }
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm">
    <template #slot1="{ formData, c }">
      <div>{{ formData }}</div>
      <div>{{ c }}</div>
    </template>
  </XyAddForm>
</template>
